package com.elec.controller.front;

import com.elec.domain.R;
import com.elec.domain.entity.PaymentRecord;
import com.elec.service.PaymentRecordService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yu
 * @date 2024/7/8
 */
@RestController
@RequestMapping("front/payment")
public class PaymentController {
    @Resource
    private PaymentRecordService paymentRecordService;
    @GetMapping("getPayment")
    public R getPayment(@RequestParam(defaultValue = "1") Integer pageNum,
                        @RequestParam(defaultValue = "10") Integer pageSize,
                        PaymentRecord paymentRecord) {
        return paymentRecordService.getPayment(pageNum, pageSize, paymentRecord);
    }
}
